Skip to content

fix SqlAuthenticationMethod missing#766

Merged
SimonCropp merged 2 commits intomainfrom
fix-SqlAuthenticationMethod-missing
Mar 22, 2026
Merged

fix SqlAuthenticationMethod missing#766
SimonCropp merged 2 commits intomainfrom
fix-SqlAuthenticationMethod-missing

Conversation

@SimonCropp
Copy link
Copy Markdown
Member

SMO 181.15.0 references SqlAuthenticationMethod which was removed from Microsoft.Data.SqlClient 7.0

Avoided the ServerConnection(SqlConnection) constructor (which calls InitFromSqlConnection → references the missing type)

fix SMO 181.15.0 references SqlAuthenticationMethod which was removed from Microsoft.Data.SqlClient 7.0. The
  CLR can't intercept this via TypeResolve/AssemblyResolve because the type is referenced in assembly metadata of an
  already-loaded assembly.

  Fix: Avoided the ServerConnection(SqlConnection) constructor (which calls InitFromSqlConnection → references the
  missing type) in both places:
@SimonCropp SimonCropp merged commit 7a5d44b into main Mar 22, 2026
5 checks passed
@SimonCropp SimonCropp deleted the fix-SqlAuthenticationMethod-missing branch March 22, 2026 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant